package com.wtwd.campus.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wtwd.campus.entity.School;
import com.wtwd.campus.model.vo.ResultVO;
import com.wtwd.campus.model.vo.SchoolVO;

import java.util.List;
import java.util.Map;

/**
 * @author mjy
 * @date 2021/06/11
 * @description
 */
public interface SchoolService {
    Integer getSchoolCountByOrgCode(String orgCode);

    /**
     * 分页查询学校
     *
     * @param page
     * @param school
     * @return
     */
    IPage<SchoolVO> queryPage(IPage page, School school);

    /**
     * 删除学校通过Id
     *
     * @param id
     * @return
     */
    ResultVO deleteSchoolById(Integer id);

    /**
     * 创建学校
     *
     * @param school
     * @return
     */
    ResultVO createSchool(School school);

    /**
     * 更新学校
     *
     * @param school
     * @return
     */
    ResultVO updateSchool(School school);

    /**
     * 获取学校通过组织编号
     * @param orgCode
     * @return
     */
    List<School> getSchoolByOrgCode(String orgCode);

    /**
     * 获取学校名称通过学校ID
     * @param schoolIds
     * @return
     */
   Map<Integer,String> getSchoolNamesBySchoolIds(String schoolIds);

    School getSchoolInfoByOrgCode(String orgCode);

    School getSchoolInfoById(Integer id);
}

